default: all

.PHONY: all
all: test1D test2D test3D

test1D: test1D.cpp Interpolation1D.h test.h function.h
	g++ test1D.cpp -o test1D.x -O3 -std=c++17
test2D: test2D.cpp Interpolation2D.h test.h function.h
	g++ test2D.cpp -o test2D.x -O3 -std=c++17
test3D: test3D.cpp Interpolation3D.h test.h function.h
	g++ test3D.cpp -o test3D.x -O3 -std=c++17
smalltest: test2D.cpp Interpolation2D.h test.h function.h
	g++ smalltest.cpp -o smalltest.x -O3 -std=c++17
timetest: timetest.cpp Interpolation1D.h Interpolation2D.h Interpolation3D.h test.h function.h
	g++ timetest.cpp -o timetest.x -O3 -std=c++17 -D_USEGSL -I./lib/include -L./lib/lib -Wl,-rpath=./lib/lib -lgsl -lgslcblas
clean:
	rm -f *.x